package com.dianqiu.common.bean;

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * DqLeagueClubsId entity. @author MyEclipse Persistence Tools
 */
@Embeddable
public class DqLeagueClubsIdTO implements java.io.Serializable {

	private Integer lgId;
	private Integer clbId;
	private String season;

	@Column(name = "LG_ID", nullable = false)
	public Integer getLgId() {
		return this.lgId;
	}

	public void setLgId(Integer lgId) {
		this.lgId = lgId;
	}

	@Column(name = "CLB_ID", nullable = false)
	public Integer getClbId() {
		return this.clbId;
	}

	public void setClbId(Integer clbId) {
		this.clbId = clbId;
	}

	@Column(name = "SEASON", nullable = false, length = 5)
	public String getSeason() {
		return this.season;
	}

	public void setSeason(String season) {
		this.season = season;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof DqLeagueClubsIdTO))
			return false;
		DqLeagueClubsIdTO castOther = (DqLeagueClubsIdTO) other;

		return ((this.getLgId() == castOther.getLgId()) || (this.getLgId() != null
				&& castOther.getLgId() != null && this.getLgId().equals(
				castOther.getLgId())))
				&& ((this.getClbId() == castOther.getClbId()) || (this
						.getClbId() != null
						&& castOther.getClbId() != null && this.getClbId()
						.equals(castOther.getClbId())))
				&& ((this.getSeason() == castOther.getSeason()) || (this
						.getSeason() != null
						&& castOther.getSeason() != null && this.getSeason()
						.equals(castOther.getSeason())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getLgId() == null ? 0 : this.getLgId().hashCode());
		result = 37 * result
				+ (getClbId() == null ? 0 : this.getClbId().hashCode());
		result = 37 * result
				+ (getSeason() == null ? 0 : this.getSeason().hashCode());
		return result;
	}

}